﻿@model BrnMall.Core.PrintConfig
@section header{
    <title>打印机设置-订单管理</title>
<link type="text/css" rel="stylesheet" href="/admin_store/css/site.css" />
<script type="text/javascript" src="/admin_store/scripts/jquery.js"></script>
<script type="text/javascript" src="/admin_store/scripts/showlist.js"></script>
<script src='http://@ViewData["JSIP"]/CLodopfuncs.js'></script>
    <script type="text/javascript">
        function GetPrintName(obj)
        {
            LODOP = getCLodop();
            return LODOP.GET_PRINTER_NAME(obj);
        }
    </script>
}
@section body{
<h1 class="rightH1">
    微信小程序 &gt; 订单管理 &gt; <span class="rightH1-cur">打印机设置</span> 
    <div class="right">
        <a href="@Url.Action("addprintconfig")" class="menuBT">
            <img src="/admin_store/images/add.jpg" />添加打印机
        </a>
        <a href="@Url.Action("printipsetting")" class="menuBT">
            <img src="/admin_store/images/add.jpg" />设置打印机IP
        </a>
        <div class="clear"></div>
    </div>
</h1>
@using (Html.BeginForm("orderlist", "order"))
{

    <div class="dataListSearch">
        <table height="32">
            <tbody class="col1">
                <tr>
                    <td style="width:26%">打印机名：@Html.TextBox("ShopID", "", new { height = "18" })</td>
                    <td>
                        <input id="SearchOrder" name="SearchOrder" type="image" class="searchBut submit" style="float:left;" src="/admin_store/images/s.jpg" />
                    </td>
                </tr>
            </tbody>
        </table>
    </div>

    <div class="dataList">
        <table width="100%">
            <thead>
                <tr>
                    <th align="center">打印机编号</th>
                    <th align="left">打印机名</th>
                    <th align="left">打印机制式</th>
                    <th align="left">操作</th>
                </tr>
            </thead>
            <tbody>
                @foreach (PrintConfig row in ViewData["PrintConfigList"] as List<PrintConfig>)
                {
                    <tr>
                        <td align="center">@row.PrintID</td>
                        <td><script>document.write(GetPrintName(@row.PrintID))</script></td>
                        <td>
                            @switch (@row.PrintFormat)
                            {
                                case 60:
                                    @:60制式
                                    break;
                                case 80:
                                    @:80制式
                                    break;
                            }
                            </td>
        <td>@Html.ActionLink("删除", "PrintConfig_Delete", new { StoreID = @row.StoreID,PrintID = @row.PrintID,PrintFormat = @row.PrintFormat }, new { @class = "deleteOperate" })</td>
</tr>
                }
            </tbody>
        </table>
    </div>
    <div class="dataListEdit">
        <div class="page">
            
        </div>
    </div>
}
                        }

